import http from "@/service/request";
import type { params } from "../type";

enum API {
  // 根据分类id获取底下的商品
  GET_PRODUCT_BY_ID = "/api/shop/goods/getById/",
}

export function api_get_product_by_id(id: number) {
  return http({
    method: "get",
    url: API.GET_PRODUCT_BY_ID + id,
  });
}
